package com.qzdsoft.erpcloud.vo.pu;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qzdsoft.vo.pu.PurchaseOrderStatus;

public class PurchaseInquiryInfo implements Serializable{
	
	private static final long serialVersionUID = 793029235923157298L;
	//采购询价单ID
	private Integer id;
	//所属公司id
    private Integer companyid;
	//所属公司
	private String companyName;
	//询价单编号
	private String billNo;
	//供应商id
    private Integer supplierid;
	//供应商名称
	private String supplierName;
	//供应商联系人id
	private String supplierContactId;
	//供应商联系人
	private String supplierContact;
	//结算方式id
	private String settleMethodId;
	//结算方式id
	private String settleMethodName;
	//结算天数
    private Integer settleDays;
    //结算币种
    private String settleCurrencyName;
    //税率
    private String taxRate;
    //汇率
    private String exchangeRate;
	//联系电话
	private String phone;
	//状态
    private String status;
    //状态string
    private String statusStr;
    //审核人
    private String confirmPerson;
    //审核日期
    @JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date confirmDate;
	//修改人
	private String modifyPerson;
	//修改日期
	@JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private String mofifyDate;
	//创建人
	private String createPerson;
	//创建日期
	@JsonFormat(timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	private String createDate;
	//备注
	private String remark;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getCompanyid()
    {
        return companyid;
    }
    public void setCompanyid(Integer companyid)
    {
        this.companyid = companyid;
    }
    public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getBillNo() {
		return billNo;
	}
	public void setBillNo(String billNo) {
		this.billNo = billNo;
	}
	public Integer getSupplierid()
    {
        return supplierid;
    }
    public void setSupplierid(Integer supplierid)
    {
        this.supplierid = supplierid;
    }
    public String getSupplierName() {
		return supplierName;
	}
	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}
	public String getSupplierContactId()
    {
        return supplierContactId;
    }
    public void setSupplierContactId(String supplierContactId)
    {
        this.supplierContactId = supplierContactId;
    }
    public String getSupplierContact() {
		return supplierContact;
	}
	public void setSupplierContact(String supplierContact) {
		this.supplierContact = supplierContact;
	}
	public String getSettleMethodId()
    {
        return settleMethodId;
    }
    public void setSettleMethodId(String settleMethodId)
    {
        this.settleMethodId = settleMethodId;
    }
    public String getSettleMethodName()
    {
        return settleMethodName;
    }
    public void setSettleMethodName(String settleMethodName)
    {
        this.settleMethodName = settleMethodName;
    }
    public Integer getSettleDays()
    {
        return settleDays;
    }
    public void setSettleDays(Integer settleDays)
    {
        this.settleDays = settleDays;
    }
    public String getSettleCurrencyName()
    {
        return settleCurrencyName;
    }
    public void setSettleCurrencyName(String settleCurrencyName)
    {
        this.settleCurrencyName = settleCurrencyName;
    }
    public String getTaxRate()
    {
        return taxRate;
    }
    public void setTaxRate(String taxRate)
    {
        this.taxRate = taxRate;
    }
    public String getExchangeRate()
    {
        return exchangeRate;
    }
    public void setExchangeRate(String exchangeRate)
    {
        this.exchangeRate = exchangeRate;
    }
    public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getStatus()
    {
        return status;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }
    public String getConfirmPerson()
    {
        return confirmPerson;
    }
    public void setConfirmPerson(String confirmPerson)
    {
        this.confirmPerson = confirmPerson;
    }
    public Date getConfirmDate()
    {
        return confirmDate;
    }
    public void setConfirmDate(Date confirmDate)
    {
        this.confirmDate = confirmDate;
    }
    public String getModifyPerson() {
		return modifyPerson;
	}
	public void setModifyPerson(String modifyPerson) {
		this.modifyPerson = modifyPerson;
	}
	public String getMofifyDate() {
		return mofifyDate;
	}
	public void setMofifyDate(String mofifyDate) {
		this.mofifyDate = mofifyDate;
	}
	public String getCreatePerson() {
		return createPerson;
	}
	public void setCreatePerson(String createPerson) {
		this.createPerson = createPerson;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public void setStatusStr(String statusStr)
    {
        this.statusStr = statusStr;
    }
    public String getStatusStr()
    {
        
        switch(status){
            case PurchaseOrderStatus.CLOSE_CODE:
                statusStr = PurchaseOrderStatus.CLOSE.getValue();
                break;
            case PurchaseOrderStatus.COMPLETE_CODE:
                statusStr = PurchaseOrderStatus.COMPLETE.getValue();
                break;
            case PurchaseOrderStatus.HAS_REVIEW_CODE:
                statusStr = PurchaseOrderStatus.HAS_REVIEW.getValue();
                break;
            case PurchaseOrderStatus.NOT_REVIEW_CODE:
                statusStr = PurchaseOrderStatus.NOT_REVIEW.getValue();
                break;
              default:
                  break;
        }
        return statusStr;
    }
	
}
